<?php
$oUsers = UserHandler::getUsers();
$sUsergroupUsers = UsergroupHandler::getUsers($_REQUEST['iUsergroup']);
?>
<div id="layer_usergroup_changeuser" class="hidden" style="visibility: visible;">
<form action="index.php" method="post" name="form_usergroup_changeuser">
<input type="hidden" name="sAction" value="usergroup-changeuser">
<input type="hidden" name="iUsergroup" value="<?php print $_REQUEST['iUsergroup'] ?>">
<input type="hidden" name="iUser" value="<?php print $_REQUEST['iUser'] ?>">
<table class="boxborder" cellspacing="0">
	<tr>
		<td class="boxhandle" colspan="2"><?php print msg('Change user') ?></td>
	</tr>
	<tr>
		<td class="fieldname"><?php print msg('User') ?>:</td>
		<td class="fieldvalue">
			<select name="sUserlist" disabled>
				<option><?php print $oUsers[$_REQUEST['iUser']]->sUser ?></option>
			</select>
		</td>
	</tr>
	<tr>
		<td class="fieldname"><?php print msg('Group admin') ?>:</td>
		<td class="fieldvalue">
			<input type="checkbox" name="bAdmin" value="1" <?php print ($sUsergroupUsers[$_REQUEST['iUser']] == 'admin' ? 'checked' : '') ?> id="focus_usergroup_changeuser">
		</td>
	</tr>
	<tr>
		<td class="boxbody center" colspan="2">
			<input type="submit" value="<?php print msg('OK') ?>">
			<input type="button" value="<?php print msg('Cancel') ?>" onClick="layerHide('layer_usergroup_changeuser');">
		</td>
	</tr>
</table>
</form>
</div>
